<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" href="css/style.css" type="text/css" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title> 学生信息管理系统 </title>
</head>
<body>
	<h2 class="h2_Title" >管理员面板</h2>
	
	<div class="div_MainPanel">
		<p><a href="index.jsp">首页</a></p>
		<form action="${pageContext.request.contextPath}/adminfindutils.do" method="post">
			<input name="findutils" type="radio" value="findbyno" checked="checked"/>学号查询
			<input name="findutils" type="radio" value="findbyabstractname" />姓名模糊查询
			<input name="findutils" type="radio" value="findbyfullname" />姓名精准查询
			<input name="findutils" type="radio" value="addinfo" />添加学生信息<br /><br />
			<input name="submit" type="submit" value="提交" />
			<input name="reset" type="reset" value="重置" />
		</form>
				
		<table style="margin: auto">
			<tr>
				<th style="width: 8em">学号</th>
				<th style="width: 6em">姓名</th>
				<th style="width: 4em">性别</th>
				<th style="width: 4em">年龄</th>
				<th style="width: 8em">院系</th>
				<th style="width: 8em">班级</th>
				<th colspan="3" style="width: 10em">操作</th>
			</tr>			
			<c:forEach var="stu" items="${requestScope.stuList}" >
					<tr>
						<td style="width: 8em">${stu.sno }</td>
						<td style="width: 6em">${stu.sname }</td>
						<td style="width: 4em">${stu.ssex }</td>
						<td style="width: 4em">${stu.sage }</td>
						<td style="width: 8em">${stu.sdept }</td>
						<td style="width: 8em">${stu.sclass }</td>
						<c:set var="a" value="${stu.sno}"></c:set>
					<td style="width: 10em">
						<a href="${pageContext.request.contextPath}/courseutils.do?sno=${stu.sno}">
							成绩
						</a>
					</td>
					<td style="width: 10em">
						<a href="${pageContext.request.contextPath}/updatepreutils.do?sno=${stu.sno}">
							更新
						</a>
					</td>
					<td>
						<a href="${pageContext.request.contextPath}/deletepreutils.do?sno=${stu.sno}">
							删除
						</a>
					</td>
					
				</tr>
			</c:forEach>
		</table><br />
		
			<a href="#" onclick="javascript:history.back(-1);">
				上一页
			</a>	
		
			<a href="${pageContext.request.contextPath}/adminfindallutils.do?sno=${a}">
				下一页
			</a>
			
	</div>
</body>
</html>